import React, { memo } from 'react'
import Left from './style'
import IconLogo from '@/assets/svg/icon_logo'
import { useNavigate } from 'react-router-dom'
const index = memo(() => {
  const navigate = useNavigate()
  const goToHome = ()=>{
    navigate("home")
  }
  return (
    <Left>
      <div className="logo" onClick={goToHome}>
        <IconLogo />
      </div>
    </Left>
  )
})

export default index